import request from '@/utils/request'

// export function login (data) {
//   return request({
//     url: '/auth/login',
//     method: 'post',
//     data
//   })
// }
// 💕可以将上面的代码简写成如下
export const login = data => request.post('/auth/login', data)

export const getUser = () => request.get('/auth/currentUser')
